#include
<kfbxlayer.h>

A layer element type is identified by ELayerElementType. A KFbxLayerElement describes how the layer element is mapped to a geometry surface and how the mapping information is arranged in memory.
Definition at line 78 of file kfbxlayer.h.
Public Types | 
|
| enum | ELayerElementType
{ eUNDEFINED, eNORMAL, eBINORMAL, eTANGENT, eMATERIAL, ePOLYGON_GROUP, eUV, eVERTEX_COLOR, eSMOOTHING, eVERTEX_CREASE, eEDGE_CREASE, eHOLE, eUSER_DATA, eVISIBILITY, eDIFFUSE_TEXTURES, eDIFFUSE_FACTOR_TEXTURES, eEMISSIVE_TEXTURES, eEMISSIVE_FACTOR_TEXTURES, eAMBIENT_TEXTURES, eAMBIENT_FACTOR_TEXTURES, eSPECULAR_TEXTURES, eSPECULAR_FACTOR_TEXTURES, eSHININESS_TEXTURES, eNORMALMAP_TEXTURES, eBUMP_TEXTURES, eTRANSPARENT_TEXTURES, eTRANSPARENCY_FACTOR_TEXTURES, eREFLECTION_TEXTURES, eREFLECTION_FACTOR_TEXTURES, eDISPLACEMENT_TEXTURES, eLAST_ELEMENT_TYPE }  | 
| Layer Element type identifier. More... | 
|
| enum | EMappingMode
{ eNONE, eBY_CONTROL_POINT, eBY_POLYGON_VERTEX, eBY_POLYGON, eBY_EDGE, eALL_SAME }  | 
| Determines how the element is mapped to a
surface. More... | 
|
| enum | EReferenceMode
{ eDIRECT, eINDEX, eINDEX_TO_DIRECT }  | 
| Determines how the mapping information is
stored in the array of coordinates. More... | 
|
Public Member Functions | 
|
| void | SetMappingMode (EMappingMode pMappingMode) | 
| Sets the Mapping Mode.  | 
|
| void | SetReferenceMode (EReferenceMode pReferenceMode) | 
| Sets the Reference Mode.  | 
|
| EMappingMode | GetMappingMode () const | 
| Returns the Mapping Mode.  | 
|
| EReferenceMode | GetReferenceMode () const | 
| Returns the Reference Mode.  | 
|
| void | SetName (const char *pName) | 
| Sets the name of this object.  | 
|
| const char * | GetName () const | 
| Returns the name of this object.  | 
|
| bool | operator== (const KFbxLayerElement &pOther) const | 
| Equivalence operator.  | 
|
| KFbxLayerElement & | operator= (KFbxLayerElement const &pOther) | 
| Assignment operator.  | 
|
| void | Destroy () | 
| Removes this layer element from its owner
and delete it.  | 
|
| virtual bool | Clear () | 
| Clears all the data from this layer element.
 | 
|
Static Public Attributes | 
|
| static const int | LAYERELEMENT_TYPE_TEXTURE_START_INDEX = int(eDIFFUSE_TEXTURES) | 
| The start index of texture type layer
elements.  | 
|
| static const int | LAYERELEMENT_TYPE_TEXTURE_END_INDEX = int(eDISPLACEMENT_TEXTURES) | 
| The end index of texture type layer
elements.  | 
|
| static const int | LAYERELEMENT_TYPE_TEXTURE_COUNT = int(eLAST_ELEMENT_TYPE - eDIFFUSE_TEXTURES) | 
| The count of texture type layer elements.
 | 
|
| static const int | LAYERELEMENT_TYPE_NON_TEXTURE_START_INDEX = int(eNORMAL) | 
| The start index of non-texture type layer
elements.  | 
|
| static const int | LAYERELEMENT_TYPE_NON_TEXTURE_END_INDEX = int(eVISIBILITY) | 
| The end index of non-texture type layer
elements.  | 
|
| static const int | LAYERELEMENT_TYPE_NON_TEXTURE_COUNT = int(eDIFFUSE_TEXTURES - eUNDEFINED - 1) | 
| The count of non-texture type layer
elements.  | 
|
| static const char * | TEXTURE_NAMES [] | 
| Array of names of texture type layer
elements.  | 
|
| static const char * | TEXTURE_UV_NAMES [] | 
| Array of names of UV layer elements.
 | 
|
| static const char * | NON_TEXTURE_NAMES [] | 
| Array of names of non-texture type layer
elements.  | 
|
| static KFbxDataType | TEXTURE_TYPES [] | 
| Array of texture types.  | 
|
| static const char * | TEXTURE_CHANNEL_NAMES [] | 
| Array of texture channels.  | 
|
| enum ELayerElementType | 
Layer Element type identifier.
Definition at line 116 of file kfbxlayer.h.
| enum EMappingMode | 
Determines how the element is mapped to a surface.
Definition at line 210 of file kfbxlayer.h.
| enum EReferenceMode | 
Determines how the mapping information is stored in the array of coordinates.
Definition at line 233 of file kfbxlayer.h.
| void SetMappingMode | ( | EMappingMode | pMappingMode | ) | [inline] | 
Sets the Mapping Mode.
| pMappingMode | Specifies the way that layer element is mapped to a surface. | 
Definition at line 244 of file kfbxlayer.h.
| void SetReferenceMode | ( | EReferenceMode | pReferenceMode | ) | [inline] | 
Sets the Reference Mode.
| pReferenceMode | Specifies the reference mode. | 
Reimplemented in KFbxLayerElementSmoothing, KFbxLayerElementCrease, and KFbxLayerElementHole.
Definition at line 249 of file kfbxlayer.h.
| EMappingMode GetMappingMode | ( | ) | const [inline] | 
Returns the Mapping Mode.
Definition at line 254 of file kfbxlayer.h.
| EReferenceMode GetReferenceMode | ( | ) | const [inline] | 
Returns the Reference Mode.
Definition at line 259 of file kfbxlayer.h.
Referenced by KFbxLayerElementUserData::operator=(), KFbxLayerElementTemplate< KFbxSurfaceMaterial * >::operator=(), and KFbxLayerElementTemplate< KFbxSurfaceMaterial * >::operator==().
| void SetName | ( | const char * | pName | ) | [inline] | 
Sets the name of this object.
| pName | Specifies the name of this LayerElement object. | 
Definition at line 264 of file kfbxlayer.h.
| const char* GetName | ( | ) | const [inline] | 
Returns the name of this object.
Definition at line 269 of file kfbxlayer.h.
| bool operator== | ( | const KFbxLayerElement & | pOther | ) | const [inline] | 
Equivalence operator.
| pOther | Layer element to be compared. | 
True if equal, false otherwise.Definition at line 275 of file kfbxlayer.h.
Referenced by KFbxLayerElementTemplate< KFbxSurfaceMaterial * >::operator==().
| KFbxLayerElement& operator= | ( | KFbxLayerElement const & | pOther | ) | [inline] | 
Assignment operator.
| pOther | Layer element assigned to this one. | 
Definition at line 286 of file kfbxlayer.h.
| void Destroy | ( | ) | 
Removes this layer element from its owner and delete it.
| virtual bool Clear | ( | ) | [inline, virtual] | 
Clears all the data from this layer element.
Reimplemented in KFbxLayerElementTemplate, KFbxLayerElementUserData, KFbxLayerElementTemplate< double >, KFbxLayerElementTemplate< int >, KFbxLayerElementTemplate< KFbxColor >, KFbxLayerElementTemplate< KFbxVector4 >, KFbxLayerElementTemplate< KFbxVector2 >, KFbxLayerElementTemplate< void * >, KFbxLayerElementTemplate< bool >, and KFbxLayerElementTemplate< KFbxSurfaceMaterial * >.
Definition at line 299 of file kfbxlayer.h.
const int
LAYERELEMENT_TYPE_TEXTURE_START_INDEX
= int(eDIFFUSE_TEXTURES)
[static] | 
The start index of texture type layer elements.
Definition at line 166 of file kfbxlayer.h.
const int
LAYERELEMENT_TYPE_TEXTURE_END_INDEX
= int(eDISPLACEMENT_TEXTURES)
[static] | 
The end index of texture type layer elements.
Definition at line 169 of file kfbxlayer.h.
const int
LAYERELEMENT_TYPE_TEXTURE_COUNT
= int(eLAST_ELEMENT_TYPE -
eDIFFUSE_TEXTURES) [static] | 
The count of texture type layer elements.
Definition at line 172 of file kfbxlayer.h.
const int
LAYERELEMENT_TYPE_NON_TEXTURE_START_INDEX
= int(eNORMAL)
[static] | 
The start index of non-texture type layer elements.
Definition at line 175 of file kfbxlayer.h.
const int
LAYERELEMENT_TYPE_NON_TEXTURE_END_INDEX
= int(eVISIBILITY)
[static] | 
The end index of non-texture type layer elements.
Definition at line 178 of file kfbxlayer.h.
const int
LAYERELEMENT_TYPE_NON_TEXTURE_COUNT
= int(eDIFFUSE_TEXTURES -
eUNDEFINED - 1) [static] | 
The count of non-texture type layer elements.
Definition at line 181 of file kfbxlayer.h.
const char* TEXTURE_NAMES[]
[static] | 
Array of names of texture type layer elements.
Definition at line 186 of file kfbxlayer.h.
const char* TEXTURE_UV_NAMES[]
[static] | 
Array of names of UV layer elements.
Definition at line 189 of file kfbxlayer.h.
const char* NON_TEXTURE_NAMES[]
[static] | 
Array of names of non-texture type layer elements.
Definition at line 192 of file kfbxlayer.h.
KFbxDataType TEXTURE_TYPES[]
[static] | 
Array of texture types.
Definition at line 195 of file kfbxlayer.h.
const char* TEXTURE_CHANNEL_NAMES[]
[static] | 
Array of texture channels.
Definition at line 198 of file kfbxlayer.h.